package com.wz.project.num.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wz.project.num.mapper.BasRoadwayNumMapper;
import com.wz.project.num.domain.BasRoadwayNum;
import com.wz.project.num.service.IBasRoadwayNumService;
import com.wz.common.utils.text.Convert;

/**
 * 1Service业务层处理
 * 
 * @author wz
 * @date 2024-01-07
 */
@Service
public class BasRoadwayNumServiceImpl implements IBasRoadwayNumService 
{
    @Autowired
    private BasRoadwayNumMapper basRoadwayNumMapper;

    /**
     * 查询1
     * 
     * @param id 1ID
     * @return 1
     */
    @Override
    public BasRoadwayNum selectBasRoadwayNumById(Long id)
    {
        return basRoadwayNumMapper.selectBasRoadwayNumById(id);
    }

    /**
     * 查询1列表
     * 
     * @param basRoadwayNum 1
     * @return 1
     */
    @Override
    public List<BasRoadwayNum> selectBasRoadwayNumList(BasRoadwayNum basRoadwayNum)
    {
        return basRoadwayNumMapper.selectBasRoadwayNumList(basRoadwayNum);
    }

    /**
     * 新增1
     * 
     * @param basRoadwayNum 1
     * @return 结果
     */
    @Override
    public int insertBasRoadwayNum(BasRoadwayNum basRoadwayNum)
    {
        return basRoadwayNumMapper.insertBasRoadwayNum(basRoadwayNum);
    }

    /**
     * 修改1
     * 
     * @param basRoadwayNum 1
     * @return 结果
     */
    @Override
    public int updateBasRoadwayNum(BasRoadwayNum basRoadwayNum)
    {
        return basRoadwayNumMapper.updateBasRoadwayNum(basRoadwayNum);
    }

    /**
     * 删除1对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteBasRoadwayNumByIds(String ids)
    {
        return basRoadwayNumMapper.deleteBasRoadwayNumByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除1信息
     * 
     * @param id 1ID
     * @return 结果
     */
    @Override
    public int deleteBasRoadwayNumById(Long id)
    {
        return basRoadwayNumMapper.deleteBasRoadwayNumById(id);
    }
}
